import Layout from '@/layout'

const rdcRouter = {
  path: '/rdc',
  component: Layout,
  name: 'Rdc',
  meta: {
    title: '研发',
    icon: 'user',
    roles: ['研发','admin']
  },
  children: [
    {
      path: 'electronic',
      name: 'Tree',
      component: () => import('@/views/rdc/electronic/index'),
      meta: { title: '元器件', icon: 'star' }
    },
    {
      path: 'electronicAdd',
      name: 'Tree',
      component: () => import('@/views/rdc/electronic/add'),
      meta: { title: '新增元器件', icon: 'star' },
      hidden: true
    },
    {
      path: 'electronicModify',
      name: 'Tree',
      component: () => import('@/views/rdc/electronic/modify'),
      meta: { title: '修改元器件', icon: 'star' },
      hidden: true
    },
    {
      path: 'electronicBoom',
      name: 'Tree',
      component: () => import('@/views/rdc/boom/index'),
      meta: { title: 'BOM单', icon: 'star' }
    },
    {
      path: 'electronicBoomAdd',
      name: 'Tree',
      component: () => import('@/views/rdc/boom/add'),
      meta: { title: 'BOM单添加', icon: 'star' },
      hidden: true
    },
    {
      path: 'electronicBoomUpdate',
      name: 'Tree',
      component: () => import('@/views/rdc/boom/update'),
      meta: { title: 'BOM单编辑', icon: 'star' },
      hidden: true
    },
    {
      path: 'electronicBoomItem',
      name: 'Tree',
      component: () => import('@/views/rdc/boom/item/index'),
      meta: { title: 'BOM单详情', icon: 'star' },
      hidden: true
    },
    {
      path: 'electronicOrder',
      name: 'Tree',
      component: () => import('@/views/rdc/order/index'),
      meta: { title: '订单列表', icon: 'star' }
    },
    {
      path: 'electronicOrderDetail',
      name: 'Tree',
      component: () => import('@/views/rdc/order/detail'),
      meta: { title: '订单详情', icon: 'star' },
      hidden: true
    }
  ]
}

export default rdcRouter
